<template>
	<view class="bg">
		<view class="info" v-for="(item,index) in dataObj.children" :key='index'>
			<view class="info_item info_item_header">
				<view>节点名称</view>
				<view>{{ item.nodeName }}</view>
			</view>
			<view class="info_item">
				<view>计划开始时间</view>
				<view>{{ item.planBeginDate }}</view>
			</view>
			<view class="info_item">
				<view>计划完成时间</view>
				<view>{{ item.planEndDate }}</view>
			</view>
			<view class="info_item">
				<view>实际开始时间</view>
				<view>{{ item.factBeginDate }}</view>
			</view>
			<view class="info_item">
				<view>实际完成时间</view>
				<view>{{ item.factEndDate }}</view>
			</view>
			<view class="info_item">
				<view>责任单位</view>
				<view>{{ item.resDeptText }}</view>
			</view>
			<view class="info_item">
				<view>责任人</view>
				<view>{{ item.resUserText }}</view>
			</view>
			<view class="info_item">
				<view>经办人</view>
				<view>{{ item.operateUserText }}</view>
			</view>
			<view class="info_item">
				<view>节点状态</view>
				<view v-if="item.nodeStatus === '0'">未开始</view>
				<view v-if="item.nodeStatus === '1'">进行中</view>
				<view v-if="item.nodeStatus === '2'">已完成</view>
				<view v-if="item.nodeStatus === '3'">暂停中</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataObj: {
				},
				info: [{
					jdmc: "征地告知书",
					jhkssj: "2021年3月12日",
					sjjssj: "2021年3月12日",
					jbr: "王远",
					jbrsjh: "13213232231",
					zrr: "苏巨糖",
					zrrsjh: "18123232132",
					zrdw: "自然资源与规划局",
				}, ],
			};
		},
		onLoad(option) {
			this.dataObj = JSON.parse(option.item)
			console.log('节点详情', this.dataObj)
		},
		onReady() {},
		methods: {},
	};
</script>

<style lang="scss" scoped>
	// .jdxxck {
	// 	padding-top: 24rpx;

	.info {
		width: 710rpx;
		margin: 0 auto;
		background: #ffffff;
		box-shadow: 0rpx 0rpx 24rpx 0rpx rgba(48, 116, 255, 0.1);
		border-radius: 8rpx;
		padding: 0 24rpx;
		margin-bottom: 20rpx;

		.info_item {
			display: flex;
			flex-flow: row nowrap;
			justify-content: flex-start;
			align-items: center;
			padding: 16rpx 0;

			view:nth-child(1) {
				width: 150rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #8e9cb3;
			}

			view:nth-child(2) {
				flex: 1;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #272b32;
				margin-left: 20rpx;
			}
		}

		.info_item_header {
			height: 100rpx;
			line-height: 100rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #272b32;
			border-bottom: 1rpx solid rgba(231, 233, 240, 1);
			padding: 0;

			view:nth-child(2) {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #272b32;
			}
		}
	}

	// }
</style>
